home *** CD-ROM | disk | FTP | other *** search
/ IBM InfoROM for OS/2 Beta 1995 January / IBM InfoROM for OS2 Beta 1-1995.ISO / testcert / storage / function / scsi / add / setlimit.scr < prev    next >
Encoding:
Text File  |  1994-08-08  |  1.6 KB  |  60 lines

  1. * Defines the range within which subsequent 
  2. * linked commands may operate.
  3.  
  4. @THREAD SETLIMIT.LOG
  5. @NEWALIAS SADD SCSIADD.GRA
  6. @IMPORT SCSICOM.SCR
  7. SADD DD_OPEN
  8.  
  9. * 0=Async mode, 1=Sync mode
  10. SADD SET MODE=1
  11.  
  12. * Command completion timeout (Secs)
  13. * 0=the assigned value is the default set by the driver,
  14. * -1=the assigned value is infinite.
  15. SADD SET TIMEOUT=0
  16.  
  17. * Name for paramblock
  18. SADD SET LABEL = "READ CAPACITY"
  19.  
  20. SADD READCAPACITY
  21.  
  22. * SADD SET LOGICAL_BLOCK_SIZE = 512
  23. **  SADD SET BUF_CLUSTER_SIZE = 2
  24.  
  25. * 1 : Read operations within the range shall be inhibited.
  26. SADD SET READ_INHIBIT = 0
  27.  
  28. * 1 : Write operations within the range shall be inhibited.
  29. SADD SET WRITE_INHIBIT = 0
  30.  
  31. * 32bit starting logical block addr
  32. SADD SET LOGICAL_BLOCK_ADDR = 60
  33.  
  34. *STARTING LOGICAL BLOCK ADDR
  35. *SADD RESPONSE $PROMPT="ENTER STARTING LOGICAL BLOCK ADDR : " $RESPONSE=LOGICAL_BLOCK_ADDR $PAUSE=15
  36.  
  37. *  0 = indicates that the logical block address field
  38. *      specifies the first logical block of the range of
  39. *      logical blocks to be operated on by this command.
  40. *  1 = indicates that the logical block address field is
  41. *      a two's complement displacement.  This -ve or +ve
  42. *      displacement shall be added to the logical block
  43. *      address last accessed on the logical unit to form the
  44. *      logical block address for this command.
  45. SADD SET ADDR_MODE=0
  46.  
  47. * No. of contiguous logical blocks to be read
  48. SADD SET NUM_BLOCKS = 2
  49.  
  50. *NO. OF CONTIGOUS LOGICAL BLOCKS TO BE READ
  51. *SADD RESPONSE $PROMPT="ENTER # OF LOGICAL BLOCKS : " $RESPONSE=NUM_BLOCKS $PAUSE=15
  52.  
  53. * Name for paramblock
  54. SADD SET LABEL = "SET LIMITS"
  55.  
  56. SADD SET_LIMITS
  57.  
  58. SADD DD_CLOSE
  59.  
  60.